package com.zbkj.service.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.common.model.Vehicle;
import com.zbkj.common.request.VehicleSearchRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 车辆表 Mapper 接口
 * </p>
 *
 * @author keNan
 * @since 2025-06-25
 */
public interface VehicleDao extends BaseMapper<Vehicle> {


    /**
     * 车辆列表
     *
     * @param request
     * @return
     */
    List<Vehicle> getListByVehicleSearchRequest(@Param("request") VehicleSearchRequest request);

    /**
     * 根据配送专员id查询gps编号
     *
     * @param deliveryPersonnelId
     * @return
     */
    String getByDeliveryPersonnelId(@Param("deliveryPersonnelId") Integer deliveryPersonnelId);
}
